<?php

class Config extends Component implements IConfig
{
    const TYPE_ARRAY = 0;
    const TYPE_INI = 1;
    const TYPE_JSON = 2;
    const TYPE_XML = 3;
    const TYPE_YAML = 4;
    
    private $_adapter = null;
    
    public function __construct()
    {
        parent::__construct();
        $this->_adapter = new ZendConfigAdapter();
    }
    
    public function __get($key)
    {
        return $this->_adapter->$key;
    }
    
    public function load($type, $file, $section = null)
    {
        $this->_adapter->load($type, $file, $section);
    }
    
    public function toArray()
    {
        return $this->_adapter->toArray();
    }
}

?>